#include "LayerItem.h"

LayerItem::LayerItem(QWidget *parent, Ptr< Layer > pLayer, int layerIndex)
    : QPushButton(parent), _index (layerIndex)
{
  ui.setupUi(this);
  setText (pLayer->getName ());
}

LayerItem::~LayerItem()
{

}

int LayerItem::getIndex () const
{
  return _index;
}

void LayerItem::select ()
{
	emit select (_index);
}
